home *** CD-ROM | disk | FTP | other *** search
/ AMIGA PD 1 / AMIGA-PD-1.iso / NetBSD / docs-netbsd / Mailinglist-Archive / 1994-08.gz / 1994-08 / 000183_owner-current-u…s.berkeley.edu_Thu Aug 4 06:40:18 1994.msg < prev    next >
Text File  |  1994-10-16  |  1KB  |  41 lines

  1. From: brad@fcr.com (Brad Parker)
  2. To: current-users@sun-lamp.cs.berkeley.edu
  3. Subject: bug in routed; adds incorrect netmasks
  4. Sender: owner-current-users@sun-lamp.cs.berkeley.edu
  5.  
  6.  
  7. I believe there is a bug in routed.  It seems to add routes with very
  8. odd (and incorrect) netmasks.  It looks like a "cut and paste" error.
  9.  
  10. (I found this trying to get gated to work - gated dumped core on the
  11. non-contig netmasks)
  12.  
  13. Try running "netstat -rAn" on your machine to see what I mean.
  14.  
  15. Here's the fix:
  16.  
  17. *** inet.c.orig    Wed Aug  3 23:06:27 1994
  18. --- inet.c    Wed Aug  3 23:06:33 1994
  19. ***************
  20. *** 144,152 ****
  21.       } else if (IN_CLASSA(i)) {
  22.           mask = IN_CLASSA_NET;
  23.       } else if (IN_CLASSB(i)) {
  24. !         mask = i & IN_CLASSB_NET;
  25.       } else
  26. !         mask = i & IN_CLASSC_NET;
  27.   
  28.       /*
  29.        * Check whether network is a subnet;
  30. --- 144,152 ----
  31.       } else if (IN_CLASSA(i)) {
  32.           mask = IN_CLASSA_NET;
  33.       } else if (IN_CLASSB(i)) {
  34. !         mask = IN_CLASSB_NET;
  35.       } else
  36. !         mask = IN_CLASSC_NET;
  37.   
  38.       /*
  39.        * Check whether network is a subnet;
  40.  
  41. -brad